#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arr[3][3] = { {1,2,3},{4,5,6},{7,8,9} };
	int a = 0;
	scanf("%d", &a);
	int sz = sizeof(arr) / sizeof(arr[0][0]);
	
	int d = 3;
	int b = 0;
	int c = 0;
	while (c < d)
	{
		if (arr[b][c] == a)
		{
			printf("have");
			break;
		}
		if (b != 2)
		{
			if (arr[b][c]<a && arr[b + 1][c]>a)
			{
				c++;
			}
			else
			{
				b++;
			}
		}
		else
		{
			c++;
		}

		if (arr[b][c] == a)
		{
			printf("have");
			break;
		}
	}
	
	return 0;
}